package com.sfac.housekeeper.account.service;

import com.github.pagehelper.PageInfo;
import com.sfac.housekeeper.account.entity.User;
import com.sfac.housekeeper.common.vo.Result;
import com.sfac.housekeeper.common.vo.Search;

/**
 * UserService
 */
public interface UserService {

    Result<User> insertUser(User user);

    Result<User> updateUser(User user);

    Result<Object> deleteUserById(int id);

    User getUserById(int id);

    PageInfo<User> getUsersBySearch(Search search);
}